<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        var name = prompt('请输入您的姓名');
        alert('您的姓名是：' + name)
        console.log('您的姓名是：' + name);

        var name = prompt('请输入您的年龄');
        alert('您的年龄是：' + name)
        console.log('您的年龄是：' + name);

        var name = prompt('请输入您的性别');
        alert('您的性别是：' + name)
        console.log('您的性别是：' + name);


        var num = 5;
        var age = prompt('你现在多少岁了');
        alert('我现在 ' + age + '岁了');
        var str = parseFloat(age) + parseFloat(num);
        console.log('据我估计,五年后你应该' + str + '岁了');
    </script>
</head>

<body>

</body>

</html>